package com.itboye.ihomebank.activity.me;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.base.BaseOtherActivity;

/**
 * Created by Administrator on 2018/4/2 0002.
 */

public class AuthorIngActivity extends BaseOtherActivity {
   private View v_statusbar;
    private TextView add_shap_title_tv,telphone;
    private ImageView tel,close_icon;
    @Override
    protected int layout_id() {
        return R.layout.activity_authentication;
    }

    @Override
    protected void onInitController() {

    }

    @Override
    protected void onInit() {
        setStatusBarHeight(v_statusbar);
        add_shap_title_tv.setText("认证");
        telphone.setText("0571-87337199");

    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()){
            case R.id.close_icon:
                finish();
                break;
            case R.id.tel:
            call("0571-87337199");
                break;
        }
    }

    @Override
    protected void onReadIntent(Bundle bundle) {

    }

    /**
     * 调用拨号界面
     * @param phone 电话号码
     */
    private void call(String phone) {
        Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:"+phone));
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }
}
